<div>

<div class="modal-header">
    <h4 class="modal-title">设置下单信息</h4>
</div>
<div class="modal-body">

<div class="container-fluid form-horizontal" >    

    <div class="form-group " >
        <label class="col-sm-3 col-xs-6 control-label text-right">身份证是否必填</label>
        <div class="col-sm-9 col-xs-6">
            <label class="i-switch m-t-xs m-r">
                <input type="checkbox" 
                  ng-checked="p.cardno_state == '1'"
                  name="p.cardno_state"
                  ng-true-value="'1'"
                  ng-false-value="'0'"
                  ng-model="p.cardno_state"
                >
                <i></i>
              </label>
        </div>
    </div>

        
</div>

</div>


<hr>


<div class="modal-header">
    <h4 class="modal-title">购买限制</h4>
</div>
<div class="modal-body">

<div class="container-fluid form-horizontal" >



    <div class="form-group" >
        <label class="col-sm-3 col-xs-7 control-label text-right">是否限制最大购买数量</label>
        <div class="col-sm-9 col-xs-12">
            <label class="i-checks  checkbox-inline">
                  <input type="radio" value="0" name="order_num_state"
                  ng-model="p.order_num_state"
                  >
                  <i></i>
                  不限制
            </label>

            <br><br>
            <label class="i-checks  checkbox-inline">
                  <input type="radio" value="1" name="order_num_state"
                  ng-model="p.order_num_state"
                  >
                  <i></i>
                  平台限制
            </label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <span class="text-danger">如果将产品发布到系统平台，所有公众号统一限制</span>
            <br><br>
            <label class="i-checks  checkbox-inline">
                  <input type="radio" value="2" name="order_num_state"
                  ng-model="p.order_num_state"
                  >
                  <i></i>
                  公众号限制
            </label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <span class="text-danger">只在当前公众号下作限制</span>

            <br>
        </div>

        
    </div>

    <div class="row mt10" ng-show="p.order_num_state != '0'">
    <div class="form-group" >
        <label class="col-sm-3 col-xs-14 control-label text-right">限制购买数量</label>
        <div class="col-sm-3 col-xs-12">
            <input type="text" class="form-control" ng-model="p.order_limit_num" placeholder="限制购买数量">
        </div>
    </div>
    </div>



    <div class="form-group mt10" ng-show="p.order_num_state != '0'">
        <label class="col-sm-3 col-xs-4 control-label text-right">限制方式</label>
        <div class="col-sm-3 col-xs-12">
            <label class="i-checks  checkbox-inline">
                  <input type="radio" value="0" name="order_limit_type"
                  ng-model="p.order_limit_type"
                  >
                  <i></i>
                  手机号
            </label>

            <label class="i-checks  checkbox-inline">
                  <input type="radio" value="1" name="order_limit_type"
                  ng-model="p.order_limit_type"
                  >
                  <i></i>
                  身份证号
            </label>

        </div>

        
    </div>


</div>

</div>



<!-- <div class="modal-header">
    <h4 class="modal-title">设置实名制限制</h4>
</div>
<div class="modal-body">

<div class="container-fluid form-horizontal">

    <div class="form-group" >
        <label class="col-sm-3 col-xs-5 control-label text-right">是否需要实名</label>
        <div class="col-sm-9 col-xs-12">
            <label class="i-checks  checkbox-inline">
                  <input type="radio" value="0" name="auth_state"
                  ng-model="p.auth_state"
                  >
                  <i></i>
                  不需要
            </label>

            <br><br>
            <label class="i-checks  checkbox-inline">
                  <input type="radio" value="1" name="auth_state"
                  ng-model="p.auth_state"
                  >
                  <i></i>
                  全部实名
            </label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <span class="text-danger">如果将产品发布到系统平台，所有公众号统一实名</span>
            <br><br>
            <label class="i-checks  checkbox-inline">
                  <input type="radio" value="2" name="auth_state"
                  ng-model="p.auth_state"
                  >
                  <i></i>
                  机构实名
            </label>
            &nbsp;&nbsp;&nbsp;&nbsp;
            <span class="text-danger">只在当前公众号下作实名限制</span>

            <br>
        </div>

        
    </div>

        
</div>

</div> -->


<div class="modal-footer">
    <button class="btn btn-primary" type="button" ng-click="gogo()">保存</button>
    <button class="btn btn-warning" type="button" ng-click="cancel()">返回</button>
</div>




</div>